<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h6 class="m-0 text-dark">环境 <input class="width-100 environment" value="{$_SERVER.HTTPS?'https':'http'}://{$_SERVER.SERVER_NAME}/"> TOKEN:<input class="width-100 token" value="88888888888888888888888888888888"></h6>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>

<section class="content">
    <div class="container-fluid">
        <div class="row col-12">
            <div class="content">
                <div class="container-fluid">
                    {foreach $tree AS $service=>$value}
                    <h5 class="mb-2">{$value.name} ({$service})<a name="item-{$key}"></a></h5>
                    {foreach $value.data AS $vo}
                    <div class="card api col col-12 border-info" style="width: 100%;">
                        <div class="card-header">
                            <h3 class="card-title">{$vo.title} <span class="btn btn-sm btn-danger">{$vo.method}</span><a name="item-{$service}-{$vo.func}"></a></h3>
                            <div class="card-tools">
                                <span class="uri" contenteditable="true">{$vo.uri}</span> <a class="apiLink hand"><i class="fa fa-link"></i> </a>  <span class="btn btn-sm btn-success hand testbtn">测试</span> {if $vo.table}<span class="btn btn-sm btn-info hand getTable" data-table="{$vo.table}">字段解释</span>{/if}
                            </div>
                        </div>
                        <!-- /.card-header -->
                        <div class="card-body p-0">
                        <!-- /.card-body -->
                            <table class="table pull-left">
                                <thead>
                                <tr style="background-color:rgb(223, 240, 216);">
                                    <!--<th>必传</th>-->
                                    <th colspan="4">参数名</th>
                                    <th colspan="3">类型</th>
                                    <th colspan="3">描述</th>
                                    <th colspan="3">参考值</th>
                                </tr>
                                </thead>
                                {volist name="vo.param" id="voo"}
                                <tr>
                                    {if condition="$voo.count gt 0"}
                                    <td width="{$voo.count}" colspan="{$voo.count}"></td>
                                    {/if}
                                    <td colspan="{$voo.len}">
                                        {if condition="$voo.is_required eq 1"} ★
                                        {else /} ☆
                                        {/if}{$voo.name}
                                    </td>
                                    <td colspan="3">{$voo.type}</td>
                                    <td colspan="3">{$voo.title}</td>
                                    <td colspan="3">
                                        {if $voo.button==0}
                                        <input class="param am-form-field am-input-sm" width="100%" data-name="{$voo.name}" value="{$voo.default_value}" />
                                        {else/}
                                        <span class="am-badge am-badge-secondary showdata">显示</span>
                                        <p class="data" style="display: none">{$voo.default_value|default='-'}</p>
                                        {/if}
                                    </td>
                                </tr>
                                {/volist}
                            </table>
                            <table class="table pull-right">
                                <thead>
                                <tr style="background-color:rgb(223, 240, 216);">
                                    <th colspan="4">参数名</th>
                                    <th colspan="3">描述</th>
                                    <th colspan="3">参考值</th>
                                </tr>
                                </thead>
                                {volist name="vo.return" id="voo" key="ii"}
                                {if $voo.name==data}
                                <tr>
                                    {if condition="$voo.count gt 0"}
                                    <td width="{$voo.count}" colspan="{$voo.count}"></td>
                                    {/if}
                                    <td colspan="{$voo.len}">{$voo.name}</td>
                                    <td colspan="3">{$voo.title}</td>
                                    <td colspan="3">
                                        -
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="10">
                                        <span class="am-badge am-badge-secondary showdata">显示</span>
                                        <p class="data" style="display: none">{$voo.default_value|default='-'}</p>
                                    </td>
                                </tr>
                                {else/}
                                <tr>
                                    {if condition="$voo.count gt 0"}
                                    <td width="{$voo.count}" colspan="{$voo.count}"></td>
                                    {/if}
                                    <td colspan="{$voo.len}">{$voo.name}</td>
                                    <td colspan="3">{$voo.title}</td>
                                    <td colspan="3">
                                        {if $voo.button==0}
                                        {$voo.default_value|default='-'}
                                        {else/}
                                        <span class="am-badge am-badge-secondary showdata">显示</span>
                                        <p class="data" style="display: none">{$voo.default_value|default='-'}</p>
                                        {/if}
                                    </td>
                                </tr>
                                {/if}
                                {/volist}
                            </table>
                        </div>
                        <div class="card-footer">
                            {$vo.intro}
                        </div>
                    </div>
                    {/foreach}
                    {/foreach}
                </div>
            </div>
        </div>

    </div>
</section>
<div class="tanchuang" style="display: none;">
    <span class="am-badge am-badge-danger hidedata">隐藏</span><br>
    <span class="content">隐藏</span>
</div>